{literal}

<script language="Javascript">
$(document).ready(function(){

        function showLoader(){

                $('.search-background').fadeIn(200);
        }

        function hideLoader(){

                $('.search-background').fadeOut(200);
        };

        $("#seachtarget").submit(function(){

                showLoader();
                $("#grid").load("index.php?grid=client&changecriteria&"+$("#seachtarget").serialize() , hideLoader);
                return false;
        });
        $("#NextButton").click(function(){

                callForSite('mailing','status','createQue3');
        });
        $(".pages").click(function(){
                showLoader();
                $("#grid").load("index.php?grid=client&page="+this.id , hideLoader);
                
                return false;
        });

        $("#1").css({'background-color' : '#006699'});
        showLoader();
        $("#grid").load("index.php?grid=client&page=1", hideLoader);

});
</script>  {/literal}


<div>
    <form id="seachtarget" name="seachtarget">
        <p>Imię<input type="text" name="name"></p>
        <p>Nazwisko<input type="text" name="surname"></p>
        <p>Wiek od<input type="text" name="agedown"></p>
        <p>Wiek do<input type="text" name="ageup"></p>
        <p><input type="submit" ></p>
        <p><input type="button" value="Dalej" id="NextButton"></p>
    </form>
</div>

<div id="status">{$messageContent}</div>
<div id="grid"></div>






